package com.example.app1;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class IntentReceive9Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.intent_receive_9);

        Bundle bundle = getIntent().getExtras();
        String msg = bundle.getString("msg");
        TextView text = findViewById(R.id.msg_text);

        text.setText("\n\n"+msg);
    }


    public void returnOnClick(View view) {
        Intent intent = new Intent(this,IntentSend9Activity.class);
        startActivity(intent);
    }
}